package com.kingdee.eas.custom.basedata;

import javax.ejb.*;
import java.rmi.RemoteException;
import com.kingdee.bos.*;
import com.kingdee.bos.util.BOSObjectType;
import com.kingdee.bos.metadata.IMetaDataPK;
import com.kingdee.bos.metadata.rule.RuleExecutor;
import com.kingdee.bos.metadata.MetaDataPK;
//import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.bos.framework.ejb.AbstractEntityControllerBean;
import com.kingdee.bos.framework.ejb.AbstractBizControllerBean;
//import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.bos.dao.IObjectCollection;
import com.kingdee.bos.service.ServiceContext;
import com.kingdee.bos.service.IServiceContext;
import com.kingdee.eas.framework.Result;
import com.kingdee.eas.framework.LineResult;
import com.kingdee.eas.framework.exception.EASMultiException;
import com.kingdee.bos.dao.ormapping.ObjectUuidPK;

import java.lang.String;
import com.kingdee.eas.common.EASBizException;
import com.kingdee.jdbc.rowset.IRowSet;
import java.math.BigDecimal;
import java.util.Date;
import com.kingdee.bos.util.BOSUuid;



public abstract class AbstractCommonFacadeControllerBean extends AbstractBizControllerBean implements CommonFacadeController
{
    protected AbstractCommonFacadeControllerBean()
    {
    }

    protected BOSObjectType getBOSType()
    {
        return new BOSObjectType("99AEB6A0");
    }

    public String GetParamsInfo(Context ctx, String cuid, String number) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("6c81b3ce-0121-1000-e000-0004c0a802e4"), new Object[]{ctx, cuid, number});
            invokeServiceBefore(svcCtx);
            String retValue = (String)_GetParamsInfo(ctx, cuid, number);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected String _GetParamsInfo(Context ctx, String cuid, String number) throws BOSException, EASBizException
    {    	
        return null;
    }

    public BigDecimal GetLastInwarePrice(Context ctx, String materialId) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("80e437ee-0121-1000-e000-1010c0a80082"), new Object[]{ctx, materialId});
            invokeServiceBefore(svcCtx);
            BigDecimal retValue = (BigDecimal)_GetLastInwarePrice(ctx, materialId);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected BigDecimal _GetLastInwarePrice(Context ctx, String materialId) throws BOSException, EASBizException
    {    	
        return null;
    }

    public IRowSet GetPartsInfoRowSet(Context ctx, String strQueryPK, String parentId) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("ebbae09c-0121-1000-e000-0039c0a802e4"), new Object[]{ctx, strQueryPK, parentId});
            invokeServiceBefore(svcCtx);
            IRowSet retValue = (IRowSet)_GetPartsInfoRowSet(ctx, strQueryPK, parentId);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IRowSet _GetPartsInfoRowSet(Context ctx, String strQueryPK, String parentId) throws BOSException, EASBizException
    {    	
        return null;
    }

    public IRowSet GetBaseInfoRowSet(Context ctx, String pk) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("ebbae09c-0121-1000-e000-0425c0a802e4"), new Object[]{ctx, pk});
            invokeServiceBefore(svcCtx);
            IRowSet retValue = (IRowSet)_GetBaseInfoRowSet(ctx, pk);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IRowSet _GetBaseInfoRowSet(Context ctx, String pk) throws BOSException, EASBizException
    {    	
        return null;
    }

    public String GetPersonDepartment(Context ctx, BOSUuid uuid, String cuid) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("34c8ccfe-0122-1000-e000-021dc0a80208"), new Object[]{ctx, uuid, cuid});
            invokeServiceBefore(svcCtx);
            String retValue = (String)_GetPersonDepartment(ctx, uuid, cuid);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected String _GetPersonDepartment(Context ctx, BOSUuid uuid, String cuid) throws BOSException, EASBizException
    {    	
        return null;
    }

    public IRowSet GetPurOrderHeadRowSer(Context ctx, String strQueryPK, String purOrderID, String purchaseID, String supplierID) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("5b14efd3-0124-1000-e000-01a6c0a8021c"), new Object[]{ctx, strQueryPK, purOrderID, purchaseID, supplierID});
            invokeServiceBefore(svcCtx);
            IRowSet retValue = (IRowSet)_GetPurOrderHeadRowSer(ctx, strQueryPK, purOrderID, purchaseID, supplierID);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IRowSet _GetPurOrderHeadRowSer(Context ctx, String strQueryPK, String purOrderID, String purchaseID, String supplierID) throws BOSException, EASBizException
    {    	
        return null;
    }

    public IRowSet GetPurorderInfoRowSet(Context ctx, String pk) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("5bd787ae-0124-1000-e000-0057c0a8021c"), new Object[]{ctx, pk});
            invokeServiceBefore(svcCtx);
            IRowSet retValue = (IRowSet)_GetPurorderInfoRowSet(ctx, pk);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IRowSet _GetPurorderInfoRowSet(Context ctx, String pk) throws BOSException, EASBizException
    {    	
        return null;
    }

    public void SetIssue(Context ctx, String id, String method) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("6aa67020-0124-1000-e000-09f3c0a8021c"), new Object[]{ctx, id, method});
            invokeServiceBefore(svcCtx);
            _SetIssue(ctx, id, method);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected void _SetIssue(Context ctx, String id, String method) throws BOSException, EASBizException
    {    	
        return;
    }

    public Date GetAppDate(Context ctx) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("524f1867-0125-1000-e000-00fdc0a80212"), new Object[]{ctx});
            invokeServiceBefore(svcCtx);
            Date retValue = (Date)_GetAppDate(ctx);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected Date _GetAppDate(Context ctx) throws BOSException
    {    	
        return null;
    }

    public void SetContructionCount(Context ctx, String contructionId, String contructionNum, String targetNum, String className, String functionName) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("c3a40618-0125-1000-e000-007cc0a80224"), new Object[]{ctx, contructionId, contructionNum, targetNum, className, functionName});
            invokeServiceBefore(svcCtx);
            _SetContructionCount(ctx, contructionId, contructionNum, targetNum, className, functionName);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected void _SetContructionCount(Context ctx, String contructionId, String contructionNum, String targetNum, String className, String functionName) throws BOSException
    {    	
        return;
    }

    public IRowSet ExcSql(Context ctx, String sql) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("02e9fe84-0127-1000-e000-067bc0a802ba"), new Object[]{ctx, sql});
            invokeServiceBefore(svcCtx);
            IRowSet retValue = (IRowSet)_ExcSql(ctx, sql);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IRowSet _ExcSql(Context ctx, String sql) throws BOSException
    {    	
        return null;
    }

    public void ExcSqlForUpdate(Context ctx, String sql) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("16f0384e-0129-1000-e000-03adc0a80214"), new Object[]{ctx, sql});
            invokeServiceBefore(svcCtx);
            _ExcSqlForUpdate(ctx, sql);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected void _ExcSqlForUpdate(Context ctx, String sql) throws BOSException
    {    	
        return;
    }

}